package com.iotek.service;

import java.util.List;

import com.iotek.entity.Goods;

public interface GoodsService {
	/**
	 * 添加商品
	 * @param goods
	 * @return
	 */
	public boolean addGoods (Goods goods);
	/**
	 * 删除商品
	 * @param goods
	 * @return
	 */
	public boolean delectGoods(Goods goods);
	/**
	 * 查找商品
	 * @param goods
	 * @return
	 */
	public List<Goods> findGoods (Goods goods);
	/**
	 * 查找所有商品
	 * @param goods
	 * @return
	 */
	public List<Goods> queryGoods (Goods goods);
	/**
	 * 根据id查找商品
	 * @param goods
	 * @return
	 */
	public Goods queryGoodsId (Goods goods);
	/**
	 * 更新商品
	 * @param goods
	 * @return
	 */
	public boolean updateGoods(Goods goods);
}
